From: Ray Strode Date: Wed, 17 Jul 2013 13:54:03 +0000 (-0400) Subject: loginDialog: s/button-press-event/key-press-event/ X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3911 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3c31908e0892dff26dc4379caf105e4849e92057;p=gnome-shell.git loginDialog: s/button-press-event/key-press-event/ A bug got introduced when moving the login dialog away from modal dialog, such that it listens for escape key presses in a mouse event handler instead of a keyboard event handler. This commit fixes that code to correctly listen for key-press-event instead of button-press-event. https://bugzilla.gnome.org/show_bug.cgi?id=702308 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 9b537f417..4b9210f05 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -470,7 +470,7 @@ const LoginDialog = new Lang.Class({ this._promptBox = new St.BoxLayout({ style_class: 'login-dialog-prompt-layout', vertical: true }); - this._promptBox.connect('button-press-event', + this._promptBox.connect('key-press-event', Lang.bind(this, function(actor, event) { if (event.get_key_symbol() == Clutter.KEY_Escape) { this.cancel();